package cheme.ProcessEditor.Policies;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ComponentEditPolicy;
import org.eclipse.gef.requests.GroupRequest;

import cheme.ProcessModel.Cmds.DeleteProcessUnitCmd;
import cheme.ProcessModel.ProcessUnits.IProcessUnit;


public class ProcessUnitPolicy extends ComponentEditPolicy
{
	protected Command createDeleteCommand(GroupRequest deleteRequest)
	{
		DeleteProcessUnitCmd command = new DeleteProcessUnitCmd((IProcessUnit)getHost().getModel());
		return command;
	}
}
